import { CheckboxGroupValueType } from "element-plus";

export interface ListParams {
  page?: number;
  pageSize?: number;
  name?: string;
  idCard?: string;
  begId?: number;
  state?: number;
  houseId?: number;
}

export interface healthData {
  id?: number;
  elderlyId?: number;
  oldillness?: string;
  nowillness?: string;
  oldillnessArr?: string[];
  nowillnessArr?: string[];
  otherillness?: string;
  otherCase?: string;
}

export interface selfCaresData {
  id?: number;
  elderlyId?: number;
  name?: string;
  val?: string;
}

export interface checkupsData {
  id?: number;
  elderlyId?: number;
  name?: string;
  picture?: string;

}

export interface familyData {
  id?: number;
  elderlyId?: number;
  name: string;
  mobile: string;
  idCard: string;
  relation: string;
  gender: number;
  address: string;
}

export interface ListData {
  id: number;
  companyId: number;
  name: string;
  mobile: string;
  photo: string;
  gender: number;
  birthday: string;
  nativePlace: string;
  nation: string;
  idCard: string;
  politics: string;
  socialCard: string;
  marriage: string;
  eduLevel: string;
  education: string;
  resident: string;
  address: string;
  begId: number;
  houseId: number;
  state: number;
  addTime: string;
  addAccountId: string;
  stateName: string;
  begName: null;
  addAccountName: string;
  houseName: null;
  buildingName: string;
  health: healthData | null;
  selfCares: selfCaresData[] | null;
  checkups: checkupsData[] | null;
  family: familyData[] | null;
}

export interface ListResult {
  counts: number;
  pageSize: number;
  list: ListData[];
}

export interface AddParams {
  name: string;
  mobile: string;
  photo: string;
  gender: number;
  birthday: string;
  nativePlace: string;
  nation: string;
  idCard: string;
  politics: string;
  socialCard: string;
  marriage: string;
  eduLevel: string;
  education: string;
  resident: string;
  address: string;
  health: healthData;
  selfCares: selfCaresData[];
  // selfCareList: selfCaresData[];
  checkups: checkupsData[];
  checkupList: DiseaseListData[]
  family: familyData[];

}
export interface DiseaseListData {
  id: number;
  name: string;
  val:string;
  checkups?: checkupsData[]
}
// export interface checkupData {
//   id: number;
//   name: string;
//   checkups?: checkupsData[]
// }
export interface DiseaseResult {
  list: DiseaseListData[];
}

export interface AddScheduleParams {
  elderlyId: number;
  day: string;
  week: string;
  staffId: number;
}

export interface ScheduleData {
  id: number;
  elderly: number;
  day: string;
  week: string;
  staffId: number;
  staffName: string | null;
  staffPhoto: string | null;
}
export interface ScheduleResult {
  list: ScheduleData[];
}

export interface AddTaskList {
  id: number;
  companyId: number;
  elderly: number;
  startTime: string;
  endTime: string;
  week: string;
  day: string;
  serviceId: number;
  type: string;
  serviceName: string | null;
  staffId: number;
  state: number;
}

export interface AddTaskResult {
  list: AddTaskList[];
}

export interface AddTaskParams {
  elderlyId: number;
  serviceId: number;
  startTime: string;
  endTime: string;
  week: string;
  day: string;
  type: string;
}

//档案添加参数
export interface AddElderlyFilesParams {
  id?: number;
  elderlyId: number;
  name: string;
  fileName: string;
}

//档案添加返回参数
export interface ListElderlyFilesRes {
  list: AddElderlyFilesParams[];
}

//档案列表参数
export interface ListElderlyFileParams {
  id: number;
  name: string;
  files?: AddElderlyFilesParams[];
}
